package com.baidu.user.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.baidu.pojo.User;
import com.baidu.user.service.RegisterService;

@Controller
public class RegisterController {
	
		@Autowired
		private RegisterService service;
		
		private Boolean flag;
		
		@RequestMapping("register")
		@ResponseBody
		public Boolean register(User user){
			return service.insertSelective(user);
		}
		
}
